A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/wwwabedainamdarc/public_html/application/controllers/Departments_detail.php:34)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/wwwabedainamdarc/public_html/application/models/Crud_model.php
Line: 30
Function: query

File: /home/wwwabedainamdarc/public_html/application/controllers/Departments_detail.php
Line: 22
Function: department_id

File: /home/wwwabedainamdarc/public_html/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

select * from departments where departments_id=Honored%20with%20the%20Best%20Teacher%20award%20for%20contribution%20in%20the%20field%20of%20education%20in%20the%20year%202016%20by%C2%A0Abeda%20Inamdar%20Senior%20College.

Filename: models/Crud_model.php

Line Number: 30